<?php

/**
 * @author hungnq@younetco.com
 */
class Tab_Form_Crop extends YouNet_Form
{

	public function init()
	{
		$this->setMethod('post');

		$this->addElement('hidden', 'x', array(
			'decorators' => array('ViewHelper'),
			'value' => 50,
		));

		$this->addElement('hidden', 'y', array(
			'decorators' => array('ViewHelper'),
			'value' => 50,
		));

		$this->addElement('hidden', 'w', array(
			'decorators' => array('ViewHelper'),
			'value' => 150,
		));

		$this->addElement('hidden', 'h', array(
			'decorators' => array('ViewHelper'),
			'value' => 150,
		));

		$this->addElement('submit', 'crop', array(
			'label' => $this->getTranslator()->_('LABEL_CROP_IMAGE'),
			'class' => 'sm_button green',
			'decorators' => array('ViewHelper',
				array('Label', array('tag' => 'div', 'class' => '', 'tagClass' => 'form_label')),
				array('Description', array('escape' => false, 'tag' => false)),
			)
		));
	}

}